package q739

func dailyTemperatures(T []int) []int {
	res := []int{}
	for index, t := range T {
		flag := 0
		for i := index + 1; i < len(T); i++ {
			if T[i] > t {
				flag = i - index
				break
			}
		}
		res = append(res, flag)
	}
	return res
}
